Profiles & User Actions
-
A type representing a Spotify user.
The
See moreUser
protocol serves as the base protocol to which all Spotify user types conform. Its requirements include all the publicly available properties of a user. See the Spotify Web API Object Model for more details.Declaration
Swift
public protocol User
-
Declaration
Swift
public struct SKUser : User, JSONDecodable
-
Declaration
Swift
public struct SKCurrentUser : User, JSONDecodable
-
A type representing a Spotify item that can be followed or unfollowed by the current authenticated user.
Types that conform to this protocol provide a set of request factories and convenience methods to either follow, unfollow, or check to see if the current authenticated user is already following the item. These types must also contain a valid Spotify ID.
Note
Although a Spotify playlist is technically afollowable
catalog item, the method declarations and implementations for following playlists differ from those defined here. Thus, theSKPlaylist
type does not conform to this protocol, but instead provides its own comparable methods and request factories.Declaration
Swift
public protocol Followable
-
A type representing a Spotify item that can be saved to the current authenticated user’s Spotify music library.
Types that conform to this protocol provide a set of request factories and convenience methods to either save, remove, or check to see if the user has already saved the item. These types must also contain a valid Spotify ID.
See moreDeclaration
Swift
public protocol Savable